# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class DangdangProductItem(scrapy.Item):
    # 基础信息
    sku = scrapy.Field()  # 商品SKU
    name = scrapy.Field()  # 商品名称
    price = scrapy.Field()  # 当前价格
    original_price = scrapy.Field()  # 定价
    author = scrapy.Field()  # 作者
    publisher = scrapy.Field()  # 出版社
    publish_date = scrapy.Field()  # 发行日期
    image_url = scrapy.Field()  # 图片URL
    description = scrapy.Field()  # 商品描述
    comments = scrapy.Field()  # 评论数
    
    # 分类信息
    category1 = scrapy.Field()  # 一级分类
    category2 = scrapy.Field()  # 二级分类
    category3 = scrapy.Field()  # 三级分类
    
    # 链接信息
    link = scrapy.Field()  # 商品链接